package single;

import java.util.List;



public class EventMapper   {
	
	/*private static EventMapper instance;
	static Logger recvlog = INMSLog.getInstance().getReceiveLog();	

	public static EventMapper instance() 
	{
		if (null == instance) {
			instance = new EventMapper();
		}
		return instance;
	}

	private EventMapper() {
		
	}*/
	
	//public EventMapper() {
		
	//}

	public static List processAlarm(String eventStr, String citycode, String neName) {
		List trapList = null;
		CopyOfEvent event = null;
		if (citycode.equals("0")) {
			event = new Event08315();
		}else {
			event = new Event08316();
		}
		System.out.println(event);
			try {
				trapList = event.process(eventStr);
				System.out.println(trapList.size());
			} catch (Exception e) {
				e.printStackTrace();
			}
		return trapList;
	}

}
